package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.SysPermissionDao;
import io.wdb.modules.generator.generator.entity.SysPermissionEntity;
import io.wdb.modules.generator.generator.service.SysPermissionService;



@Service("sysPermissionService")
public class SysPermissionServiceImpl implements SysPermissionService {
	@Autowired
	private SysPermissionDao sysPermissionDao;
	
	@Override
	public SysPermissionEntity queryObject(Long id){
		return sysPermissionDao.queryObject(id);
	}
	
	@Override
	public List<SysPermissionEntity> queryList(Map<String, Object> map){
		return sysPermissionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysPermissionDao.queryTotal(map);
	}
	
	@Override
	public void save(SysPermissionEntity sysPermission){
		sysPermissionDao.save(sysPermission);
	}
	
	@Override
	public void update(SysPermissionEntity sysPermission){
		sysPermissionDao.update(sysPermission);
	}
	
	@Override
	public void delete(Long id){
		sysPermissionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysPermissionDao.deleteBatch(ids);
	}
	
}
